package org.dyz.banana.platform.sample.eurakaclient2.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class WebMvcConfig {

	@Bean(value = "ribbonRestTemplate")
	@LoadBalanced
    public RestTemplate getRibbonRestTemplate() {
        return new RestTemplate();
    }
	
	@Bean(value = "restTemplate")
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
	
}
